package org.tony.spider.common;

import java.util.Set;
import java.util.TreeSet;


public class Rule
{
  private String       id;
  private Set<Command> commands;

  public Rule()
  {
    commands = new TreeSet<Command>();
  }

  public String getId()
  {
    return id;
  }

  public void setId(String id)
  {
    this.id = id;
  }

  public Set<Command> getCommands()
  {
    return commands;
  }

  public void setCommands(Set<Command> commands)
  {
    this.commands = commands;
  }

  @Override
  public String toString()
  {
    return "Rule [id=" + id + ", commands=" + commands + "]";
  }

}
